class Animal implements Cloneable {
    String name;

    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}

public class TestDemo {
    public static void main(String[] args) throws CloneNotSupportedException {
        Animal animal = new Animal();
        Animal animal1 = (Animal) animal.clone();

    }
}
